import request from './request'
// 牧场新增
export const livestockTypeAdd = (addlivestockType) => {
  return request({
    url: '/livestockType/add',
    method: 'post',
    data: addlivestockType,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 牧场列表
export const livestockTypeList = (params) => {
  return request({
    url: '/livestockType/list',
    method: 'get',
    param: params,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

//  牧场详情
export const livestockTypeDetail = (typeId) => {
  return request({
    url: '/livestockType/detail',
    method: 'get',
    param: {
      typeId
    },
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 修改牧场
export const livestockTypeUpdate = (updateLivestockType) => {
  return request({
    url: '/livestockType/update',
    method: 'post',
    data: updateLivestockType,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 全部品种列表
export const livestockTypeAllList = () => {
  return request({
    url: '/livestockType/allList',
    method: 'get',
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}
